#include <iostream>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <bits/stdc++.h>
#include <nlohmann/json.hpp>
#include <sqlite3.h>

using namespace std;
using json = nlohmann::json;

void Open_DatabaseFile(const char* filename, sqlite3** database);
static int callback(void *data, int argc, char **argv, char **azColName);
int readgpkg(string& satid);